package br.com.obardavez.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

import br.com.obardavez.base.entity.BaseEntity;

@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
@Entity
@Table(name = "PROMOCAO", schema = "OBARDAVEZ")
@XmlRootElement
public class Promocao implements BaseEntity {
	
	private static final long serialVersionUID = 1L;

	private Long id;
	
	private Long idBar;
	
	private String titulo;
	
	private String descricao;
	
	private String inicio;
	
	private String termino;
	
	private boolean moderado;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name = "ID")
	@XmlElement
	public Long getId() {
		return id;
	}

	@Column(name = "IDBAR")
	@XmlElement
	public Long getIdBar() {
		return idBar;
	}
	
	@Column(name = "TITULO")
	@XmlElement
	public String getTitulo() {
		return titulo;
	}
	
	@Column(name = "DESCRICAO")
	@XmlElement
	public String getDescricao() {
		return descricao;
	}

	@Column(name = "INICIO")
	@XmlElement
	public String getInicio() {
		return inicio;
	}
	
	@Column(name = "TERMINO")
	@XmlElement
	public String getTermino() {
		return termino;
	}
	
	@Column(name = "MODERADO")
	@XmlElement
	public boolean getModerado() {
		return moderado;
	}
	
	public void setId(Long id) {
		this.id = id;
	}

	public void setIdBar(Long idBar) {
		this.idBar = idBar;
	}

	public void setTitulo(String titulo) {
		this.titulo = titulo;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	public void setInicio(String inicio) {
		this.inicio = inicio;
	}

	public void setTermino(String termino) {
		this.termino = termino;
	}

	public void setModerado(boolean moderado) {
		this.moderado = moderado;
	}
}
